let numState = {
  state: {
    num: 10
  },
  actions: {
    add1: (newState: { num: number }) => {
      newState.num++;
    },
    add2: (newState: { num: number }, action: { val: number }) => {
      newState.num += action.val;
    },
    add3: (newState: { num: number }, action: { val: number }) => {
      newState.num += action.val;
    },
  },
};

let actionNames: any = {};

for (let key in numState.actions) {
  actionNames[key] = key;
};


export default {
  ...numState,
  actionNames
};